#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int numsjs(int* nums, int numsSize)
{
	int mid = 0;
	int i = 0;
	int j = 0;
	int k = 0;
	int ret = 0;
	for (i = 0; i < numsSize; i++)
	{
		k = 0;
		for (j = 0; j < numsSize; j++)
		{
			if (nums[i] == nums[j] && i != j)
				k++;
		}
		if (k == 0)
			ret = nums[i];
	}
	return ret;
}

int main()
{
	int arr[10] = { 1,2,1,2,5 };
	int ret = numsjs(arr, 5);
	printf("%d", ret);
	return 0;
}